<!-- 综合查询-验收 -->
<template>
  <div>
    <!--
        1.['A', 'B', 'D', 'G', 'Z'], // A = 铁塔类项目, B = 室分类项目, C = 传输类项目, G = 微姑类项目, Z = 整体项目 W=服务成本||
        2.M =信息化
      -->
    <acceptanceManagement v-if="prjType == 'M'" />
    <acceptance v-if="commonPrjTypes.includes(prjType)" />
  </div>
</template>
  <script>

      import acceptance from './index.vue'
      import acceptanceManagement from '../acceptanceManagement/index.vue'

      import { getQueryObject, setDocTitle } from '@/utils' // 获取url地址信息
      import { getPrjDetail } from '@/api/actualBudget/tFbusiness'

      // import { setToken10 } from '@/utils/auth'
      export default {
        name: 'IntegratedQueryActualBudget',
        components: {
          acceptance,
          acceptanceManagement
        },
        data() {
          return {
            urlList: {},
            prjType: '',
            commonPrjTypes:['A', 'B', 'C', 'G', 'Z','W','T','Q','Y','S','J','F','L']
          }
        },
        created() {
          const { prjId, type } = getQueryObject()
          this.urlList = {
            prjId,
            type
          }
          this.getPrjDetailFun()
        },
        methods: {
          // 获取 基本信息
          async getPrjDetailFun() {
            await getPrjDetail({ prjId: this.urlList.prjId }).then(res => {
                this.basicList = res.data // 获取基本信息
                this.prjType = this.basicList.prjType
            })
          }
        }
      }
  </script>

  <style>
  </style>

